Fix an oversight in the previous commit
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 19:14:54 +0000 (15:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 19:14:54 +0000 (15:14 -0400)
We lost the line marking the search model as non-empty, causing
us to show the 'no results' page despite there being results.

gtk/gtkfilechooserwidget.c

index 21596070324a2b4f938b6ef627b0cebcace230af..51ba79e2e63494d1b1da17f559d036ffb7f63bd1 100644 (file)
@@ -6138,6 +6138,9 @@ search_engine_hits_added_cb (GtkSearchEngine      *engine,
       files = g_list_prepend (files, file);
     }
 
+  if (files)
+    impl->priv->search_model_empty = FALSE;
+
   _gtk_file_system_model_add_and_query_files (impl->priv->search_model,
                                               files,
                                               MODEL_ATTRIBUTES);